<? ob_start(); ?> 
<?php 
    include_once('../includes/common.inc.php');
    include_once('../dal/adminDAL.php');
    
    if(check_login()==false){
        header("location:login.php");
    }
    
    $class = "";
    $message = "";

    if(isset($_GET["error_message"]))
    {
        $class = "message error";
        $message = $_GET["error_message"];
    }
    else if (isset($_GET["message"]))
    {
        $class = "message success";
        $message = $_GET["message"];
    }
    $adminDAL = new AdminDAL();
    $memberList = $adminDAL->getAllMembers(); 

    $_title = "Home";
    include_once("../views/admin/header.php");
    include_once("../views/admin/accounts.php");
?>
<? ob_flush(); ?>